package com.totoro.tygeneratedragonblock.executor.command.impl;

import com.totoro.tygeneratedragonblock.TyGenerateDragonBlock;
import com.totoro.tygeneratedragonblock.constants.StaticSystemVarConst;
import com.totoro.tygeneratedragonblock.executor.command.MainCommandExecutor;
import org.bukkit.command.CommandSender;

/**
 * @author Totoro
 * @version 0.1.0
 * @date 2025/8/10 - 18:41
 * @description
 **/
public class HelpCommandExecutor implements MainCommandExecutor {
    @Override
    public void execute(TyGenerateDragonBlock plugin, CommandSender sender, String[] args) {
        if(!judgePermission(plugin, sender, null)) {
            return;
        }
        sender.sendMessage(String.format("§c[§f%s§c]", StaticSystemVarConst.CONSOLE_PREFIX));
        sender.sendMessage("§7/tgdb spawn <blockId> <spawnId> <cooldown> §f- 在脚下创建一个方块刷新点");
        sender.sendMessage("§7/tgdb remove <spawnId> §f- 删除一个方块刷新点");
        sender.sendMessage("§7/tgdb reload §f- 重载插件配置");
    }
}
